{extend name='public/form'/}
<!-- 表单字段 -->
{block name='fields'}
{:token_field()}
<input type="hidden" name="id" value="{$row['id']}">
<div class="layui-form-item">
    <label class="layui-form-label">网站名称</label>
    <div class="layui-input-block">
        <input type="text" name="name" value="{$row['name']}" required lay-verify="required" placeholder="请输入网站名称"
            autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">网站地址</label>
    <div class="layui-input-block">
        <input type="text" name="url" value="{$row['url']}" required lay-verify="required" placeholder="请输入网站地址"
            autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">Logo</label>
    <div class="layui-input-inline">
        <input type="text" name="logo" value="{$row['logo']}" placeholder="Logo图片" autocomplete="off"
            class="layui-input upload">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">排序</label>
    <div class="layui-input-inline">
        <input type="number" name="sort" value="{$row['sort']}" required lay-verify="required" placeholder="请输入排序"
            autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">状态</label>
    <div class="layui-input-block">
        <input type="hidden" name="status" value="1">
        <input type="checkbox" name="status" lay-skin="switch" lay-text="开启|禁用" value="0" {if $row['status']=='0' }
            checked{/if}>
    </div>
</div>
{/block}